<?php

class ActionView extends BaseAction
{
    public $pageId = 'rumors_view';

    public function run()
    {
        $iRumorId = Yii::app()->request->getParam('rumor_id');
        $oRumor   = Rumor::model()->findByPk($iRumorId);
        
        if ( $oRumor )
        {
            $this->template->oRumor = $oRumor;
        }
        else
        {
            Yii::app()->controller->redirect(Yii::app()->controller->createUrl('/rumors'));
        }
    }
}